package com.CampusForum.community.service;


import com.CampusForum.community.entity.User;

import java.util.Map;

public interface UserService {
    User getUserById(int userId);

    Map<String, Object> register(User user);

    int activateUser(int userId, String activationCode);

    Map<String, Object> login(String username, String password, boolean rememberme);

    void logout(String ticket);

    void updateUserAvatar(User user, String headerUrl);

    Map<String, Object> updatePassword(String oldPassword, String newPassword);

    User getUserByName(String username);
}
